import request from '@/utils/request'

// 查询法律咨询列表
export function listAdvice(query) {
  return request({
    url: '/member/advice/list',
    method: 'get',
    params: query
  })
}

// 查询法律咨询详细
export function getAdvice(id) {
  return request({
    url: '/member/advice/' + id,
    method: 'get'
  })
}

// 新增法律咨询
export function addAdvice(data) {
  return request({
    url: '/member/advice',
    method: 'post',
    data: data
  })
}

// 修改法律咨询
export function updateAdvice(data) {
  return request({
    url: '/member/advice',
    method: 'put',
    data: data
  })
}

// 删除法律咨询
export function delAdvice(id) {
  return request({
    url: '/member/advice/' + id,
    method: 'delete'
  })
}

// 导出法律咨询
export function exportAdvice(query) {
  return request({
    url: '/member/advice/export',
    method: 'get',
    params: query
  })
}